<?php  
/**
* 
*/
class RoleController extends CI_Controller
{
	
	function __construct()
	{
		parent::__construct();
		$this->load->model('Role_Model');
		$this->load->model('Permission_Model');
	}

	public function index(){
		$session_data = $this->session->userdata('logged_in');

		$data['resultRole'] = $this->Role_Model->getAllRole();

		$this->load->view("include/header");
		$this->load->view("Role/index",$data);
		$this->load->view("include/footer");
		
	}

	public function create(){
		$data['resultPermission'] = $this->Permission_Model->getAllPermission();

		$this->load->view("include/header");
		$this->load->view("Role/create",$data);
		$this->load->view("include/footer");
	}

	public function edit(){

	}
}
?>